package spring.lottery.dao.mapper;

import org.apache.ibatis.annotations.Mapper;
import spring.lottery.controller.param.DrawPrizesData;
import spring.lottery.dao.dataObject.ActivityDO;
import spring.lottery.server.dto.ActivityDto;
import spring.lottery.server.enums.ActivityStatusEnum;

import java.util.List;

@Mapper
public interface ActivityMapper {
    int insert(ActivityDto activity);

    List<ActivityDO> selectActivity();

    ActivityDto selectActivityById(Long activityId);

    void updateStatus(DrawPrizesData param, ActivityStatusEnum status);
}
